/**sigpending*/
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<unistd.h>
#include<signal.h>

int main(void)
{
	sigset_t sig_set;
	sigemptyset(&sig_set);
	sigpending(&sig_set);

	if(sigismember(&sig_set,SIGINT)){
		puts("SIGINT is pending");
	}else if(!sigismember(&sig_set,SIGINT)){
		puts("SIGINT is not pending");
	}

}
